﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace ScrumProject.ViewModels
{
    public class TaskStatusModel
    {
        public int Id { get; set; }

        [Required]
        [Display(Name = "Status :")]
        public string StatusCode { get; set; }

        public IEnumerable<TaskStatusModel> GetStatus()
        {
            return new List<TaskStatusModel>
                            {
                                new TaskStatusModel() {Id = 4, StatusCode = "pending"},
                                new TaskStatusModel() {Id = 0, StatusCode = "assigned"},
                                new TaskStatusModel() {Id = 1, StatusCode = "accepted"},
                                new TaskStatusModel() {Id = 2, StatusCode = "released"},
                                new TaskStatusModel() {Id = 3, StatusCode = "completed"}
                            };
        }
    }
}